public class Threadd2 implements Runnable{
    @Override
    public void run(){
        System.out.println("线程2");
        System.out.println(Thread.currentThread().isInterrupted());
    }
    public static void main(String[] args) {
Runnable runnable = new Threadd2();
Thread t2 = new Thread(runnable);
t2.start();
    }
}
